<?php
/**
 * True Gallery userpanel authors template file
 *
 * @version 2.5
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @homepage http://truegallery.ru 
 * @filename userpanel.authors.tpl.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * THIS GALLERY is an EVOLUTION of AkoGallery -> PonyGallery -> DatsoGallery
 *
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');

?>
<!--form action="index.php?option=com_true&vaiew=userpanel&task=view" method="post" name="adminForm" -->
	<!--input type="button" name="Button" value="<?php echo JText::_('TG_NEW_PICTURE'); ?>" onclick="javascript:location.href='<?php //echo JRoute::_( $tgurl.'&task=showupload' ); ?>';" class="button" /-->
	<div align="center">
		<?php //echo $listnav->html; ?>
		<?php //echo $listnav->nav->writeOfCounter(); //$pageNav->writePagesLinks("$tgurl&task=userpannel"); ?>
	</div>
	
	<table class="authorstable" width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="50%" valign="top" class="authorsleftcolumn"><?php
				foreach ($letter as $l) { ?>
					<h3><?php echo $l; ?></h3>
					<ul class="dg_owner"><?php
					foreach($list as $user) {
						//$linkowner = JRoute::_(TG_FRONTURL.'&view=special&sorting=owner&uid='.$user->uid);
						$linkowner = JRoute::_(TG_FRONTURL.'&view=userpanel&task=authors&uid='.$user->uid);
						if ($l == $user->letter) { ?>
							<li><a href="<?php echo $linkowner; ?>"><?php echo $user->owner; ?></a> (<?php echo $user->count; ?>)</li><?php
						}
					} ?>
				</ul><?php
				} ?>
			</td>
			<td width="50%" valign="top" class="authorsrightcolumn"><?php
				foreach( $letter2 as $l2 ) { ?>
				<h3><?php echo $l2; ?></h3>
				<ul class="dg_owner"><?php
					foreach( $list as $user ) {
						//$linkowner = JRoute::_(TG_FRONTURL.'&view=special&sorting=owner&uid='.$user->uid);
						$linkowner = JRoute::_(TG_FRONTURL.'&view=userpanel&task=authors&uid='.$user->uid);
						if ($l2 == $user->letter) { ?>
							<li><a href="<?php echo $linkowner; ?>"><?php echo $user->owner; ?></a> (<?php echo $user->count; ?>)</li><?php
						}
					} ?>
				</ul><?php
				} ?>
			</td>
		</tr>
	</table>
	
	<div align="center">
		<?php //echo $listnav->html; ?>
		<?php //echo $listnav->nav->writeOfCounter(); ?>
	</div>
<!--/form-->